package com.javasm.http;

/**
 * 封装响应信息枚举类
 */

public enum AjaxMsgEnum {

    Error(50000,"操作失败"),
    OK(20000,"操作成功"),

    ADMIN_NOT_ACTIVE(30001,"用户未激活"),
    EMAIL_NOT_FOUND(30000,"邮箱错误");

    private int status;
    private String message;

    AjaxMsgEnum(int status, String message) {
        this.status = status;
        this.message = message;
    }

    public int getStatus() {
        return status;
    }

    public String getMessage() {
        return message;
    }
}
